// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
 
// 启用路由
Vue.use(Router);

// 导入路由

// 首页
import index from '../pages/home/index'
// 附近油站
import map from '../pages/map/index'
// 所有分类
import shopList from '../pages/shopList/index'
// 搜索
import search from '../pages/search/index'
// 个人中心
import my from '../pages/my/index'
// 账号设置
import userSitting from '../pages/userSitting/index'
// 订单页面
import order from '../pages/order/index'
// 油券列表-个人中心进
import myCard from '../pages/myCard/index'
// 油券列表-首页进
import indexCard from '../pages/indexCard/index'
// 石油专场
import oilShow from '../pages/oilShow/index'
// 用户登录/注册
import getUser from '../pages/getUser/index'
// 文件上传
import upload from '../pages/upload/index'
// 认证等待及完成
import authenticationOk from '../pages/authentication/authenticationOk'
import wait from '../pages/authentication/wait'
// 创建订单
import creatOrder from '../pages/creatOrder/index'
// h5海报
import poster from '../pages/poster/index'
// 支付成功
import vipBuy from '../pages/paySuccess/vipBuy'
import water from '../pages/paySuccess/water'
import waterVip from '../pages/paySuccess/waterVip'
// 格桑泉海报
import posterNo1 from '../pages/geSangQuan/posterNo1'
import posterNo2 from '../pages/geSangQuan/posterNo2'
// 优惠券
import quan from '../pages/quan/index'
// 油券详情
import youQuanMsg from '../pages/youQuanMsg/index'
// 帮助中心
import tel from '../pages/helpMsg/tel'
import business from '../pages/helpMsg/business'
import helpCore from '../pages/helpMsg/helpCore'
import helpMsg from '../pages/helpMsg/helpMsg'
import userAgreement from '../pages/helpMsg/userAgreement'
// 使用规则
import roule from '../pages/roule/index'
// 导出路由 
export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'index',
            component: index,
            meta: {
                title: '首页'
            }
        },
        {
            path: '/index',
            name: "index",
            component: index,
            meta: {
                title: '首页'
            }
        },
        {
            path: '/map',
            name: "map",
            component: map,
            meta: {
                title: '附近油站'
            }
        },
        {
            path: '/shopList',
            name: "shopList",
            component: shopList,
            meta: {
                title: '所有产品'
            }
        },
        {
            path: '/search',
            name: "search",
            component: search,
            meta: {
                title: '搜索'
            }
        },
        {
            path: '/my',
            name: "my",
            component: my,
            meta: {
                title: '个人中心'
            }
        },
        {
            path: '/userSitting',
            name: "userSitting",
            component: userSitting,
            meta: {
                title: '个人设置'
            }
        },
        {
            path: '/order',
            name: "order",
            component: order,
            meta: {
                title: '我的订单'
            }
        },
        {
            path: '/myCard',
            name: "myCard",
            component: myCard,
            meta: {
                title: '电子券'
            }
        },
        {
            path: '/indexCard',
            name: "indexCard",
            component: indexCard,
            meta: {
                title: '电子券'
            }
        },
        {
            path: '/oilShow',
            name: "oilShow",
            component: oilShow,
            meta: {
                title: '石油专场'
            }
        },
        {
            path: '/getUser',
            name: "getUser",
            component: getUser,
            meta: {
                title: '用户注册/登录'
            }
        },
        {
            path: '/upload',
            name: "upload",
            component: upload,
            meta: {
                title: '用户认证'
            }
        },
        {
            path: '/authenticationOk',
            name: "authenticationOk",
            component: authenticationOk,
            meta: {
                title: '认证成功'
            }
        },
        {
            path: '/wait',
            name: "wait",
            component: wait,
            meta: {
                title: '认证中...'
            }
        },
        {
            path: '/creatOrder',
            name: "creatOrder",
            component: creatOrder,
            meta: {
                title: '订单支付'
            }
        },
        {
            path: '/poster',
            name: "poster",
            component: poster,
            meta: {
                title: '办理中国石油会员卡'
            }
        },
        {
            path: '/vipBuy',
            name: "vipBuy",
            component: vipBuy,
            meta: {
                title: '支付成功'
            }
        },
        {
            path: '/water',
            name: "water",
            component: water,
            meta: {
                title: '支付成功'
            }
        },
        {
            path: '/waterVip',
            name: "waterVip",
            component: waterVip,
            meta: {
                title: '支付成功'
            }
        },
        {
            path: '/posterNo1',
            name: "posterNo1",
            component: posterNo1,
            meta: {
                title: '格桑泉'
            }
        },
        {
            path: '/posterNo2',
            name: "posterNo2",
            component: posterNo2,
            meta: {
                title: '格桑泉'
            }
        },
        {
            path: '/quan',
            name: "quan",
            component: quan,
            meta: {
                title: '优惠券'
            }
        },
        {
            path: '/youQuanMsg',
            name: "youQuanMsg",
            component: youQuanMsg,
            meta: {
                title: '油券详情'
            }
        },
        {
            path: '/tel',
            name: "tel",
            component: tel,
            meta: {
                title: '官方客服'
            }
        },
        {
            path: '/business',
            name: "business",
            component: business,
            meta: {
                title: '商务合作'
            }
        },
        {
            path: '/helpCore',
            name: "helpCore",
            component: helpCore,
            meta: {
                title: '帮助中心'
            }
        },
        {
            path: '/helpMsg',
            name: "helpMsg",
            component: helpMsg,
            meta: {
                title: '帮助详情'
            }
        },
        {
            path: '/roule',
            name: "roule",
            component: roule,
            meta: {
                title: '规则'
            }
        },
        {
            path: '/userAgreement',
            name: "userAgreement",
            component: userAgreement,
            meta: {
                title: '用户协议'
            }
        }
    ]
})